package org.base.baseproject.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.base.baseproject.service.RolePermissionService;
import org.base.baseproject.domain.RolePermission;
import org.base.baseproject.mapper.RolePermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements RolePermissionService {
    @Autowired
    private RolePermissionMapper rolePermissionMapper;
    @Override
    public List<String> getRolePermissionByUserPid(String userId) {
        return rolePermissionMapper.getRolePermissionByUserPid(userId);
    }
}
